package com.example.controller;

import com.example.domain.AjaxResult;
import com.example.service.DbBlockService;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Copyright: Copyright (c) 2022
 *
 * <p>
 * Description:
 *
 * @author LiuFeng
 * @version 2022/11/11 11:47
 * @since
 */
@Controller
@RequestMapping("/dbBlock")
public class DbBlockController {
    private DbBlockService dbBlockService;

    public DbBlockController(DbBlockService dbBlockService) {
        this.dbBlockService = dbBlockService;
    }

    @GetMapping("/data")
    @ResponseBody
    public AjaxResult dbBlockData() {
        dbBlockService.readSectionTwoInfo();
        return AjaxResult.success("成功");
    }
}
